﻿@using LSBLL
@using LSEntity
@model OralExamEntity.OEStudent.TestList
<link href="/Content/Oral/@Model.LocalName/exam.css" rel="stylesheet" type="text/css" />
<link href="/Content/Oral/@Model.LocalName/ready.css" rel="stylesheet" type="text/css" />
<div id="back">
    @*<div id="userMessage">
        <img src="images/girl.png" width="100" height="97" border="0" style="float: left;" />
        <ul><b>考生姓名</b><li><b>王雨田</b></li>
        </ul>
        <ul><b>准考证号</b><li><b>10101010</b></li>
        </ul>
    </div>*@
    @Model.Common.UserMessage.HtmlTemp(Model.ViewPath + "Temp/Student/UserMessage.cshtml")
    @Model.Common.LeftMenu.HtmlTemp(Model.ViewPath + "Temp/Student/LeftMenu.cshtml")
    @*<div id="sav">
        <ul>
            <img class="optionImage" src="images/bookImage.png" width="49" height="41" border="0" style="float: left;" /><input class="button" type="button" value="考前准备" /><img class="line" src="images/line.jpg" width="184" height="2" border="0" />
        </ul>
        <ul>
            <img class="optionImage" src="images/goldImage.png" width="49" height="41" border="0" style="float: left;" />
                <font style="color: #FFF; font-family: '微软雅黑', Arial; font-size: 16px; line-height: 40px; margin-left: 11px;"><b>我的考场</b></font>
                <img class="line" src="images/line.jpg" width="184" height="2" border="0" />
            <li style="display: block;">
                <ul>
                    <input class="optionButton" type="button" value="进入考试" style="margin-top: 13px;" />
                </ul>
                <ul>
                    <input class="optionButton" type="button" value="考场记录" />
                </ul>
            </li>
        </ul>
        <ul>
            <img class="optionImage" src="images/mirrorImage.png" width="49" height="41" border="0" style="float: left;" /><input class="button" type="button" value="个人设置" /><img class="line" src="images/line.jpg" width="184" height="2" border="0" /><li>
                <ul>
                    <input class="optionButton" type="button" value="基本资料" style="margin-top: 13px;" />
                </ul>
                <ul>
                    <input class="optionButton" type="button" value="学校信息" />
                </ul>
            </li>
        </ul>
        <ul>
            <img class="optionImage" src="images/exitImage.png" width="49" height="41" border="0" style="float: left;" /><input class="button" type="button" value="退出系统" /><img class="line" src="images/line.jpg" width="184" height="2" border="0" />
        </ul>
    </div>*@
    <div id="mico">
        <input id="micoButton" type="button" value="测试麦克风" />
    </div>
    <div id="examImage">
        <br />
        <span><b>试卷列表</b></span>
        <hr width="650" color="#0099FF" />
        <br />
        @Model.TestClassList.ListFormatTable(Model.ViewPath + "Temp/Student/TestList.cshtml", "yyyy年MM月dd日")
        @*<table align="center" width="650" height="200" border="2" cellpadding="8" cellspacing="0" bordercolor="#666666">
            <tr>
                <td class="tableTitle"><b>考试日期</b></td>
                <td class="tableTitle"><b>考试类型</b></td>
                <td width="250" height="30" bgcolor="#FFFFFF" style="color: #000; font-family: '微软雅黑', Arial; font-size: 12px; text-align: center;"><b>试卷名称</b></td>
                <td class="tableTitle"><b>时长</b></td>
                <td class="tableTitle"><b>状态</b></td>
            </tr>
            <tr>
                <td class="tableContent" bgcolor="#FFFFFF">2013年4月15日</td>
                <td class="tableContent">正式考试</td>
                <td class="tableContent">2013年上海牛津一年级第一学期口考模拟测试1</td>
                <td class="tableContent">30分钟</td>
                <td class="tableContent">
                    <input class="startButton" type="button" value="暂未开始" /></td>
            </tr>
            <tr>
                <td class="tableContent" bgcolor="#FFFFFF">2013年4月15日</td>
                <td class="tableContent">正式考试</td>
                <td class="tableContent">2013年上海牛津一年级第一学期口考模拟测试1</td>
                <td class="tableContent">30分钟</td>
                <td class="tableContent">
                    <input class="startButton" type="button" value="暂未开始" /></td>
            </tr>
            <tr>
                <td class="tableContent" bgcolor="#FFFFFF">2013年4月15日</td>
                <td class="tableContent">正式考试</td>
                <td class="tableContent">2013年上海牛津一年级第一学期口考模拟测试1</td>
                <td class="tableContent">30分钟</td>
                <td class="tableContent">
                    <input class="startButton" type="button" value="开始考试" /></td>
            </tr>
        </table>*@
    </div>
    @Model.Common.Head.HtmlTemp(Model.ViewPath + "Temp/Student/Head.cshtml")
    @Model.Common.Feet.HtmlTemp(Model.ViewPath + "Temp/Student/Feet.cshtml")
</div>
<script type="text/javascript">
    var testId = 0;
    $(function () {
        $("#true").click(function () {
            var password = $("#text").val();
            $.get('@Model.GetUrl("Student/TestCheck")', { testId: testId, password: password }, function (result) {
                $("#text").val("");
                var testingstatus = '@((int)TestingStatus.TestIng)';
                if (result.Result == testingstatus) {
                    var url = '@Model.GetUrl("Student/Test?testId=")' + testId;
                    location.href = url;
                } else {
                    alert(result.Msg);
                }
            }, "json");
        });
        $("input[name='btnGoTest']").click(function () {
            testId = $(this).attr("TestId");
            $.blockUI({
                message: $('#ready'),
                css: {
                    top: '40%',
                    left: '62%',
                    textAlign: 'left',
                    marginLeft: '-320px',
                    marginTop: '-145px',
                    background: 'none'
                }
            });
        });
    });
</script>
<div id="ready" style="display: none;">
    <input id="exit" type="button" onclick="$.unblockUI()" />
    <div id="title">准备好了吗？请输入试卷密码</div>
    <div id="word">
        <input id="text" type="text" />
    </div>
    <input id="true" type="button" value="确定" />
</div>

